/**
 * Copyright (c) 2009, 2010  Collaborative Development Group, C.S. Dept., University of Bari
 *
 * All rights reserved. This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License v1.0  which accompanies this distribution, and is 
 * available at http://www.eclipse.org/legal/epl-v10.html
 */
package it.uniba.di.cdg.penelope.ui.test.mvp.scope;

import it.uniba.di.cdg.penelope.ui.IPresentationModel;

import java.beans.PropertyChangeListener;

public class MyViewModel implements IMyViewModel, IPresentationModel {
	private static final long serialVersionUID = -2357844368355343171L;

	private String message;

	@Override
	public String getMessage() {
		return message;
	}

	@Override
	public void setMessage(String message) {
		System.out.println( "Changing message to:" + message );
		this.message = message;
	}

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.penelope.ui.IPresentationModel#addPropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	@Override
	public void addPropertyChangeListener( PropertyChangeListener listener ) {
		// Nothing
	}

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.penelope.ui.IPresentationModel#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
	 */
	@Override
	public void addPropertyChangeListener( String propertyName, PropertyChangeListener listener ) {
		// Nothing
	}

	/* (non-Javadoc)
	 * @see it.uniba.di.cdg.penelope.ui.IPresentationModel#removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	@Override
	public void removePropertyChangeListener( PropertyChangeListener listener ) {
		// Nothing
	}
}
